/*
 * Copyright (c) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef ISPATIAL_AWARENESS_MGR_H
#define ISPATIAL_AWARENESS_MGR_H

#include <string>

#include <iremote_broker.h>
#include <iremote_object.h>

#include "ispatial_location_callback.h"
#include "spatial_location_mode.h"
#include "spatial_device_info.h"

namespace OHOS {
namespace Msdp {
class ISpatialAwarenessMgr : public IRemoteBroker {
public:
    enum {
        GET_DISTANCE = 0,
        GET_ANGLE,
        GET_DIRECTION,
        REG_SPATIAL_LOCATION_CALLBACK,
        UNREG_SPATIAL_LOCATION_CALLBACK,
    };

    virtual void SubscribeSpatialLocationRelationship(const SpatialLocationMode &mode,
        const SpatialDeviceInfo &info, const sptr<ISpatialLocationCallback>& callback) = 0;
    virtual void UnSubscribeSpatialLocationRelationship(const SpatialLocationMode &mode,
        const SpatialDeviceInfo &info, const sptr<ISpatialLocationCallback>& callback) = 0;
    virtual float GetDistance(std::string deviceId) = 0;
    virtual float GetAngle(std::string deviceId) = 0;
    virtual uint32_t GetDirection(std::string deviceId) = 0;

    DECLARE_INTERFACE_DESCRIPTOR(u"ohos.msdp.ISpatialAwarenessMgr");
};
} // namespace Msdp
} // namespace OHOS

#endif // ISPATIAL_AWARENESS_MGR_H